.gallery {
  position: relative;
  margin-bottom: 40px;
  background: #16141e;
  color: white;
  overflow: auto;
  width: 760px;
  height: 400px;
}

.gallery img {
  -ms-interpolation-mode:bicubic;
}

.gallery .loading {
  text-align: center;
  padding-top: 1.3em;
}

.gallery .primary {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

.gallery .previews {
  position: absolute;
  overflow: hidden;
}

.gallery .previews .intro,
.gallery .previews .outro {
  text-align: center;
  background: #3a3a3c;
  overflow: auto;
}

.gallery .previews .intro p {

  font-size: 16px;
}

.gallery .previews img {
  width: 33%;
  float: left;
  position: relative;
  z-index: 100;
  display: block;
}

.gallery .previews img.vignette {
  position: absolute;
  width: 100%;
  float: none;
  left: 0;
  right: 0;
  cursor: pointer;
}

.gallery .previews img:nth-of-type(3n+1) {
  clear: left;
}

.gallery .previews .intro + .vignette,
.gallery .previews .outro + .vignette,
.gallery .previews .vignette.ie_not_clickable {
  cursor: default;
}

.gallery .vignette_src {
  display: none !important;
}

.gallery .scroll_up,
.gallery .scroll_down {
  position: absolute;
  right: 25%;
  background: #16102e;
  z-index: 200;
  opacity: 0.8;
  color: #9996a3;
  text-align: center;
  overflow: hidden;
  display: none;
  cursor: pointer;
  border: 1px solid #38334f;
}

.gallery .scroll_up img,
.gallery .scroll_down img {
  width: auto;
  height: 100%;
}

.gallery .scroll_up {
  top: 0;
  display: none;
  border-top: none;
}

.gallery .scroll_down {
  bottom: 0;
  border-bottom: none;
}
